//
//  SZCalendarCell.m
//  SZCalendarPicker
//
//  Created by Stephen Zhuang on 14/12/1.
//  Copyright (c) 2014年 Stephen Zhuang. All rights reserved.
//

#import "SZCalendarCell.h"

@implementation SZCalendarCell
- (UILabel *)creatLabelWithFrame:(CGRect)frame text:(NSString *)text{
    UILabel *label = [[UILabel alloc] initWithFrame:frame];
    label.text = text;
    //    label.textColor = [UIColor darkGrayColor];
    label.backgroundColor = [UIColor clearColor];
    label.numberOfLines = 0;
    label.font = [UIFont systemFontOfSize:17];
    return label;
}
- (UILabel *)dateLabel
{
    if (!_dateLabel) {
        NSInteger itemWidth = kScreenWidth/7;
        _dateLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, itemWidth, self.contentView.frame.size.height)];
        [_dateLabel setTextAlignment:NSTextAlignmentCenter];
        [_dateLabel setFont:[UIFont systemFontOfSize:17]];
        [self addSubview:_dateLabel];
    }
    return _dateLabel;
}

-(id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
 //       self.backgroundColor=[UIColor greenColor];
//        _dateLabel = [[UILabel alloc] initWithFrame:CGRectMake(5, 5, self.contentView.width-10, self.contentView.hidden-10)];
//        [self.contentView addSubview:_dateLabel];
        


        //initialize code...
    }
    return self;
}

//- (void)hideImageView{
//    _laterLabel.hidden=YES;
//    _leaveLabel.hidden=YES;
//    _absenteeismLabel.hidden=YES;
//}

@end
